package actions;

import gui.GUIWindow;

import java.awt.event.ActionEvent;

import javax.swing.JOptionPane;


@SuppressWarnings("serial")
public class AboutAction extends SysTrayAbstractAction {

	public AboutAction(GUIWindow owner) {
		setActionOwner(owner);
		
//		putValue(ACCELERATOR_KEY, KeyStroke.getKeyStroke(KeyEvent.VK_F7, 0));
//		putValue(SMALL_ICON, ImageCreator.createImageIcon(AboutAction.class, "images/about.png"));
		putValue(NAME, "About");
		putValue(SHORT_DESCRIPTION, "About");
		
		setActionItem();
	}
	

	
	@Override
	public void actionPerformed(ActionEvent e) {
/*		
		JOptionPane.showMessageDialog(super.getActionOwner(),
				"Java SysTray Test\n" +
				"\nAuthor:   Uros Krkic\n\n" +
				" - Racunarski fakultet\n" +
				" - Beograd\n" +
				" - Copyright 2007",
				"About Java SysTray Test",
				JOptionPane.INFORMATION_MESSAGE);
*/		
		JOptionPane.showMessageDialog(super.getActionOwner(),
				"RLM Server\n" +
				" - Version: 2.0" + "\n" +
				" - Copyright 2008",
				"About RLM Server",
				JOptionPane.INFORMATION_MESSAGE);
	}
	
}
